package com.modules.dao.sys;

import java.util.List;
import java.util.Map;

import com.modules.dto.sys.req.MenuEntityReq;
import com.modules.entity.sys.DictSettingEntity;
import com.modules.entity.sys.RoleMenuOperationEntity;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.common.mybatis.MyBatisDao;
import com.modules.dto.sys.resp.MenuDtoResp;
import com.modules.dto.sys.resp.MenuEntityResp;
import com.modules.dto.sys.resp.RoleDtoResp;
import com.modules.entity.sys.MenuEntity;
import com.modules.entity.sys.RoleMenuEntity;



/**
 * 菜单接口
 * @author yyq
 *
 */

@MyBatisDao
public interface MenuDao extends BaseMapper<MenuEntity>{

	
	List<MenuEntityResp> selectTree(MenuEntityReq menuEntityReq);
	
	List<MenuEntityResp> selectTreeAll(MenuEntity menuEntity);

	
	List<RoleDtoResp> selectMenuRole(@Param(value="mid")String mid);
	
	List<MenuDtoResp> selectRoleMenu(@Param(value="rid")Integer rid);
	
	int insertRoleMenu(@Param(value="list")List<RoleMenuEntity> list);
	
	int deleteRoleMenu(@Param(value="model")RoleMenuEntity roleMenu);

	List<Map<String, String>> selectRoleMenuOperation(@Param(value="rid")Integer rid, @Param(value="list")List<DictSettingEntity> list);

	List<MenuDtoResp> selectRoleMenuOperationLogin(@Param(value="rid")Integer rid);

	int insertRoleMenuOperation(@Param(value="list")List<RoleMenuOperationEntity> list);

	int deleteRoleMenuOperation(@Param(value="model")RoleMenuOperationEntity roleMenu);

}
